package com.bean;

import lombok.Data;

@Data
public class Book {
    public int id;          // 图书编号
    public String name;     // 图书名称
    public String author;   // 图书作者
    public float price;     // 图书价格
    public String press;    // 图书出版社
    public String sales;    // 图书销量

    // 无参构造
    public Book() {
    }

    // 带参构造
    public Book(int id, String name, String author, float price, String press, String sales) {
        this.id = id;
        this.name = name;
        this.author = author;
        this.price = price;
        this.press = press;
        this.sales = sales;
    }
}
